using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DefenseTools._Visibility
{
    /// <summary>
    /// <para>Find Highest Or Lowest Point</para>
    /// <para>Finds the highest or lowest point  of the input surface within a defined area.</para>
    /// <para>查找定义区域内输入曲面的最高点或最低点。</para>
    /// </summary>    
    [DisplayName("Find Highest Or Lowest Point")]
    public class FindHighestLowestPoint : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FindHighestLowestPoint()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_surface">
        /// <para>Input Surface</para>
        /// <para>The input elevation raster surface.</para>
        /// <para>输入高程栅格表面。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The feature class containing the output highest or lowest point.</para>
        /// <para>包含输出最高点或最低点的要素类。</para>
        /// </param>
        /// <param name="_high_low_operation_type">
        /// <para>Highest or Lowest Point</para>
        /// <para><xdoc>
        ///   <para>Specifies the type of operation the tool will perform.</para>
        ///   <bulletList>
        ///     <bullet_item>Highest points—The highest points will be found. This is the default.</bullet_item><para/>
        ///     <bullet_item>Lowest points—The lowest points will be found.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定工具将执行的操作类型。</para>
        ///   <bulletList>
        ///     <bullet_item>最高点—将找到最高点。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>最低点—将找到最低点。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        public FindHighestLowestPoint(object _in_surface, object _out_feature_class, _high_low_operation_type_value _high_low_operation_type)
        {
            this._in_surface = _in_surface;
            this._out_feature_class = _out_feature_class;
            this._high_low_operation_type = _high_low_operation_type;
        }
        public override string ToolboxName => "Defense Tools";

        public override string ToolName => "Find Highest Or Lowest Point";

        public override string CallName => "defense.FindHighestLowestPoint";

        public override List<string> AcceptEnvironments => ["extent", "outputCoordinateSystem", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_surface, _out_feature_class, _high_low_operation_type.GetGPValue(), _in_feature];

        /// <summary>
        /// <para>Input Surface</para>
        /// <para>The input elevation raster surface.</para>
        /// <para>输入高程栅格表面。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Surface")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_surface { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The feature class containing the output highest or lowest point.</para>
        /// <para>包含输出最高点或最低点的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Highest or Lowest Point</para>
        /// <para><xdoc>
        ///   <para>Specifies the type of operation the tool will perform.</para>
        ///   <bulletList>
        ///     <bullet_item>Highest points—The highest points will be found. This is the default.</bullet_item><para/>
        ///     <bullet_item>Lowest points—The lowest points will be found.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定工具将执行的操作类型。</para>
        ///   <bulletList>
        ///     <bullet_item>最高点—将找到最高点。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>最低点—将找到最低点。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Highest or Lowest Point")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _high_low_operation_type_value _high_low_operation_type { get; set; }

        public enum _high_low_operation_type_value
        {
            /// <summary>
            /// <para>Highest points</para>
            /// <para>Highest points—The highest points will be found. This is the default.</para>
            /// <para>最高点—将找到最高点。这是默认设置。</para>
            /// </summary>
            [Description("Highest points")]
            [GPEnumValue("HIGHEST")]
            _HIGHEST,

            /// <summary>
            /// <para>Lowest points</para>
            /// <para>Lowest points—The lowest points will be found.</para>
            /// <para>最低点—将找到最低点。</para>
            /// </summary>
            [Description("Lowest points")]
            [GPEnumValue("LOWEST")]
            _LOWEST,

        }

        /// <summary>
        /// <para>Input Area</para>
        /// <para>The input polygon feature class within which the highest or lowest point will be found.</para>
        /// <para>将在其中找到最高点或最低点的输入面要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Area")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _in_feature { get; set; } = null;


        public FindHighestLowestPoint SetEnv(object extent = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(extent: extent, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}